<template>
  <div class="flex-al box">
    <!-- <build-el-h1 :name="name" type="2"></build-el-h1> -->
    <!-- <div class="right_title">{{ option.title }}</div> -->
    <div class="flex-al" v-for="(item, index) in option.options" :key="index">
      <div class="alignText flex-al">
        <div class="t1">{{ item.title }}</div>
        <div class="t2" v-for="text in item.options" :key="'text' + text.text">
          <span v-if="text.type == 'text'">{{ text.text }}</span>
          <img
            style="width: 120px; height: 120px"
            v-else
            :src="IMGURL + text.text"
          />
        </div>
      </div>
    </div>
  </div>
</template>
<script>
import buildElH1 from "../build-el-h1";
let IMGURL = process.env.VUE_APP_BASR_IMG_URL;
export default {
  props: {
    option: {
      type: Object,
      default: () => {},
    },
  },
  components: {
    buildElH1,
  },
  data() {
    return {
      IMGURL: IMGURL,
    };
  },
};
</script>
<style lang="less" scoped>
.box {
  width: calc(1200px - 875px);
  // margin-top: 30px;
  .alignText,
  .leftText,
  .img {
    margin-bottom: 30px;
    .t1 {
      font-size: 18px;
      color: #333333;
      font-weight: bold;
      text-align: center;
      margin-bottom: 10px;
      &:last-child {
        margin-bottom: 0;
      }
    }
    .t2 {
      max-width: 250px;
      font-size: 15px;
      color: #666666;
      &:last-child {
        margin-bottom: 0;
      }
      margin-bottom: 10px;

      text-align: center;
    }
    img {
      width: 120px;
      height: 120px;
    }
  }
  .alignText {
    margin-bottom: 0;
    margin-top: 30px;
  }
  .leftText {
    .t1 {
      width: 100%;
      text-align: center;
    }
  }
}
</style>
